Root exchange algorithm

This page demonstrates the root exchange algorithm used in "The generalized doubling method: $(k,c)$ models" by Yuanqing Cai, Solomon Friedberg, Dmitry Gourevitch and Eyal Kaplan, Section 3.2.